package cn.iocoder.yudao.module.yyzx.controller.admin.meal_calendar.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 膳食信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class FoodRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11996")
    @ExcelProperty("主键")
    private Integer id;

    @Schema(description = "膳食名称", example = "赵六")
    @ExcelProperty("膳食名称")
    private String foodname;

    @Schema(description = "膳食类别", example = "1")
    @ExcelProperty(value = "膳食类别", converter = DictConvert.class)
    @DictFormat("FOOD_TYPE") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String foodtype;

    @Schema(description = "膳食标签")
    @ExcelProperty("膳食标签")
    private String foodlabel;

    @Schema(description = "膳食价格", example = "16701")
    @ExcelProperty("膳食价格")
    private Double foodprice;

    @Schema(description = "是否清真", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否清真", converter = DictConvert.class)
    @DictFormat("IS_TYPE") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String isMuslim;

    @Schema(description = "供应星期")
    @ExcelProperty(value = "供应星期", converter = DictConvert.class)
    @DictFormat("SUPPY_DATE") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer supplyDate;

    @Schema(description = "供应类型 ", example = "2")
    @ExcelProperty(value = "供应类型 ", converter = DictConvert.class)
    @DictFormat("SUPPY_TYPE") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer supplyType;

    @Schema(description = "图片")
    @ExcelProperty("图片")
    private String foodpic;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}